﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UpdateOrder.ascx.cs" Inherits="UserControls_UpdateOrder" %>
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional" Triggers="">
    <ContentTemplate>
        <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
    GridLines="None" AutoGenerateColumns="False" AllowPaging="True" 
    onpageindexchanged="GridView1_PageIndexChanged" 
    onpageindexchanging="GridView1_PageIndexChanging" 
    onselectedindexchanged="GridView1_SelectedIndexChanged">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
        <asp:HyperLinkField  DataTextField="OrderID" HeaderText="OrderID" DataNavigateUrlFields="OrderID" DataNavigateUrlFormatString="../AdminViewOrderDetails.aspx?orderid={0}" />
        <asp:BoundField DataField="OrderExp" HeaderText="OrderExp" 
            SortExpression="OrderDate" />
        <asp:CheckBoxField DataField="Status" HeaderText="Status" 
            SortExpression="Status" />
        <asp:CommandField ShowSelectButton="True" />
    </Columns>
    <EditRowStyle BackColor="#999999" />
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#E9E7E2" />
    <SortedAscendingHeaderStyle BackColor="#506C8C" />
    <SortedDescendingCellStyle BackColor="#FFFDF8" />
    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnSubmit" EventName="click"/>
    </Triggers>
</asp:UpdatePanel>
<asp:Label ID="lblmsg" runat="server" CssClass="error"></asp:Label><br/>
<asp:DropDownList ID="ddlStatus" runat="server">
</asp:DropDownList>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" 
    onclick="btnSubmit_Click" />    
